﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Circle:Shape
    {
        private double r;

        public Circle(double r)
        {
            this.R = r;
        }

        public double R { get => r; set => r = value; }

       public override void GetArea()
        {
            double Area = 0;
            Area = R * R * 3.14;
            Console.WriteLine("圆的面积"+Area);

        }
    }
}
